> For the complete documentation index, see [llms.txt](https://guides.getalby.com/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.getalby.com/user-guide/alby-account/faq/how-to-use-my-own-domain-as-lightning-address.md).

# How to use my own domain as lightning address

How to use your Alby lightning address with own domain?

{% hint style="info" %}
**Please read and fill out the form first.**\
To use your own domain, you will need to upload a file to the server of your own domain. We need a way to contact and inform you, if the file requires a change.\
\
For advanced users, we recommend setting up a redirect rather than hosting a copy of your lightning address data.
{% endhint %}

{% embed url="<https://form.jotform.com/231085718548059>" %}

### **Prerequisites**

* An active Alby Account with a [lightning address](/user-guide/alby-account/features/lightning-address.md) (can be free or paid)
* Your own domain with web hosting access
* Ability to upload files to your domain's root directory

### Steps

#### 1. Get your Alby lightning address configuration

* Open your browser and go to `https://getalby.com/.well-known/lnurlp/YOUR_ALBY_USERNAME`
* Replace `YOUR_ALBY_USERNAME` with your actual Alby username
* Save the page (Ctrl+S or Cmd+S) to download the JSON configuration file

#### 2. Prepare the configuration file

* Remove the file extension from the downloaded file (e.g. json)
* Example: If you want `payments@yourdomain.com` rename the file to just `payments` (no extension)

#### 3. Verify the configuration content

Your file should contain JSON similar to this

{% code title="Example" overflow="wrap" %}

```json
{
   "status": "OK",
   "tag": "payRequest",
   "commentAllowed": 255,
   "callback": "https://getalby.com/lnurlp/YOUR_USERNAME/callback",
   "metadata": "[[\"text/identifier\",\"YOUR_USERNAME@getalby.com\"],[\"text/plain\",\"Sats for Alby\"]]",
   "minSendable": 1000,
   "maxSendable": 11000000000,
   "payerData": {
    "name": {
      "mandatory": false
    },
    "email": {
      "mandatory": false
    },
    "pubkey": {
      "mandatory": false
    }
  },
   "nostrPubkey": "your_nostr_pubkey_here",
   "allowsNostr": true
}
```

{% endcode %}

#### 4. Upload to your own domain

* Upload the file to your domain's root directory at this specific path `https://yourdomain.com/.well-known/lnurlp/FILENAME`
* **Important:** Your domain must be accessible without `www` (hosted on the root domain)

{% hint style="info" %}
Would you like to have separate lightning addresses with your own domain—for example, for family members, friends or business purposes?\
Repeat step 1-4 and upload other files to your domain's root directory.
{% endhint %}

#### 5. Example setup

Let's say you want to create `payments@example.com`

* Download the configuration from: `https://getalby.com/.well-known/lnurlp/alice`
* Rename the file to `payments` (no extension)
* Upload to `https://example.com/.well-known/lnurlp/payments`

#### 6. Test your setup

* **Check the URL**: Open `https://yourdomain.com/.well-known/lnurlp/FILENAME` in your browser
* **Test a payment**: Try sending a small payment to your new lightning address
* **Verify receipt**: Confirm the payment arrives in your wallet

#### Troubleshooting

* 404 Error: Check that the file is uploaded to the correct `.well-known/lnurlp/` directory
* Payment fails: Verify the `"callback"` URL in your JSON file matches your Alby username
* Domain issues: Ensure your domain works without `www` prefix

✅ **That's it. You just turned your own domain into a lightning address! 🙌**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guides.getalby.com/user-guide/alby-account/faq/how-to-use-my-own-domain-as-lightning-address.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
